package com.game.model.map;

import java.io.Serializable;
import java.util.List;

/**
 * @Description:地图坐标点
 **/
public class MapPoint implements Serializable {
    private int X;//地图X轴
    private int Y;//地图Y轴
    private int gameMapId;//所属地图
    private List<Object> pointObject;//地图当前点里面存在的东西（怪物，角色，宝箱...）

    public int getX() {
        return X;
    }

    public void setX(int x) {
        X = x;
    }

    public int getY() {
        return Y;
    }

    public void setY(int y) {
        Y = y;
    }

    public int getGameMapId() {
        return gameMapId;
    }

    public void setGameMapId(int gameMapId) {
        this.gameMapId = gameMapId;
    }

    public List<Object> getPointObject() {
        return pointObject;
    }

    public void setPointObject(List<Object> pointObject) {
        this.pointObject = pointObject;
    }

    public MapPoint() {
    }

    public MapPoint(int gameMapId, int x, int y) {
        this.gameMapId = gameMapId;
        X = x;
        Y = y;
    }

    @Override
    public String toString() {
        return "MapPoint{" +
                "X=" + X +
                ", Y=" + Y +
                ", gameMapId=" + gameMapId +
                ", pointObject=" + pointObject +
                '}';
    }
}
